home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Workbench Add-On
/
Workbench Add-On - Volume 1.iso
/
DiskUtil
/
Misc
/
ReOrg
/
Install_ReOrg
< prev
next >
Wrap
Text File
|
1993-08-31
|
10KB
|
311 lines
; $VER: Install_ReOrg 3.106 (31.08.93)
; Script to install ReOrg 3.1
(complete 0)
(if (= @language "Dansk") (
(set default_lang 0)
(set #wrong-kick
"ReOrg kræver mindst KickStart 2.04")
(set #which-dir
(cat "Vælg venligst den skuffe, hvor i du ønsker ReOrg"
"skal installeres."))
(set #which-dir-help
(cat "Det her program installer ReOrg på din harddisk. "
"Vælg venligst en skuffe, hvor du have ReOrg "
"installeret.\n\nInstallations programmet vil så kopier "
"program filen 'ReOrg' og alle relaterede filer og ikoner "
"til denne stuffe.\n\nHvis du allerede har installeret en "
"tidligere version af ReOrg i denne skuffe, vil "
"installations programmet spørge om tilladelse til at slette "
"det gamle program version før installering af det nye "
"program."))
(set #which-language
"Vælg venligst med hvilket sprog der skal installeres.")
(set #which-language-help
(cat "ReOrg kan konfigureres til flere forskellige sprog. "
"Dette påvirker alle program beskeder, program dokumentation "
"og den indbygget hjælp."
"\n\nVælg venligst hvilket sprog du ønsker at bruge ReOrg."))
(set #delete-old
(cat "Der er allerede en gamle version af ReOrg installeret i "
"destinations skuffen. Ønsker du at slette den gamle version "
"og installere den nye version ?"))
(set #delete-old-help
(cat "Installations programmet har fundet en version af ReOrg "
"allerede installeret i destinations skuffen. Hvis du forsætter "
"med installeringen vil den version blive slette og den nye "
"version vil blive installeret istedet. Det er ikke muligt "
"at have to forskellige version af ReOrg i samme skuffe. "
"Hvis du ønsker at slette den gamle version, så vælg 'Forsæt' "
". Ellers vælg 'Afbryd'"))
(set @abort-button "Afbryd Installering")
))
(if (= @language "Deutsch") (
(set default_lang 1)
(set #wrong-kick
"ReOrg benötigt mindestens Kickstart 2.04")
(set #which-dir
(cat "Bitte geben Sie an, in welchem Verzeichnis "
"ReOrg installiert werden soll."))
(set #which-dir-help
(cat "Dieses Programm installiert ReOrg auf Ihrer "
"Festplatte. Bitte geben Sie an, in welchem Verzeichnis "
"ReOrg installiert werden soll.\n\nDas Installationsprogramm "
"kopiert dann die Programmdatei 'ReOrg' und alle zugehörigen "
"Dateien und Piktogramme in dieses Verzeichnis.\n\nWenn Sie "
"bereits eine ältere ReOrg-Version in diesem Verzeichnis "
"installiert haben, fragt das Installationsprogramm um "
"Erlaubnis, diese alte Version zu löschen, bevor die neue "
"Version installiert wird."))
(set #which-language
"Bitte geben Sie an, welche Sprachen installiert werden sollen.")
(set #which-language-help
(cat "ReOrg kann für verschiedene Sprachen konfiguriert werden. "
"Das betrifft alle Programm-Meldungen, die Dokumentation und die "
"Online-Hilfe."
"\n\nBitte geben Sie an, in welchen Sprachen Sie ReOrg nutzen "
"möchten."))
(set #delete-old
(cat "Es ist bereits eine ältere ReOrg-Version im Zielverzeichnis "
"installiert. Möchten Sie diese ältere Version löschen und die "
"neue Version installieren ?"))
(set #delete-old-help
(cat "Das Installationsprogramm hat festgestellt, daß sich im "
"Zielverzeichnis bereits eine ReOrg-Version befindet. Wenn Sie "
"die Installation fortsetzen, wird diese Version gelöscht und "
"die neue Version stattdessen installiert. Es ist nicht möglich, "
"zwei verschiedene ReOrg-Versionen in dem selben Verzeichnis "
"zu haben."))
(set @abort-button "Installation abbrechen")
))
(if (= @language "English") (
(set default_lang 2)
(set #wrong-kick
"ReOrg requires at least Kickstart 2.04")
(set #which-dir
(cat "Please specify the drawer where you want ReOrg "
"to be installed."))
(set #which-dir-help
(cat "This program installs ReOrg on your harddisk. "
"Please specify a drawer where you want ReOrg to be "
"installed.\n\nThe installation program will then copy the "
"program file 'ReOrg' and all related files and icons "
"to this drawer.\n\nIf you have already installed a previous "
"version of ReOrg in that drawer, the installation program "
"will ask you for permission to delete the old program version "
"before installing the new program version."))
(set #which-language
"Please specify which languages should be installed.")
(set #which-language-help
(cat "ReOrg can be configured for several different languages. "
"This affects all program messages, program documentation and "
"online-help."
"\n\nPlease specify in which languages you want to use ReOrg."))
(set #delete-old
(cat "There is already an old version of ReOrg installed in the "
"destination drawer. Do you want to delete that old version "
"and install the new version ?"))
(set #delete-old-help
(cat "The installation program has found that some version of ReOrg "
"is already installed in the destination drawer. If you proceed "
"with the installation that version will be deleted and the new "
"version will be installed instead. It is not possible to have "
"two different ReOrg versions in the same drawer."))
(set @abort-button "Abort Install")
))
(if (= @language "Nederlands") (
(set default_lang 3)
(set #wrong-kick
"ReOrg heeft Kickstart 2.04 of hoger nodig.")
(set #which-dir
(cat "Geef de lade waar ReOrg geonstalleerd "
"moet worden."))
(set #which-dir-help
(cat "Dit programma installeert ReOrg op uw harddisk. "
"Geef de lade waar Reorg geonstalleerd "
"moet worden.\n\nHet installatieprogramma zal dan het "
"bestand 'ReOrg' en alle bijbehorende bestanden en ikonen "
"kopikren naar deze lade.\n\nIndien u al een eerdere "
"versie van ReOrg in deze lade geonstalleerd heeft zal "
"het installatieprogramma vragen om toestemming deze te "
"verwijderen voordat de nieuwe wordt geonstalleerd."))
(set #which-language
"Geef aan welke talen geonstalleerd moeten worden.")
(set #which-language-help
(cat "ReOrg can worden geconfigureerd voor verschillende talen. "
"Dit beinvloed alle mededelingen, programma documentatie en "
"online-hulp."
"\n\nGeef aan welke talen geonstalleerd moeten worden."))
(set #delete-old
(cat "Er staat al een oude versie van ReOrg in de "
"bestemmingslade. Wilt u deze verwijderen en de nieuwe versie "
"installeren?"))
(set #delete-old-help
(cat "Het installatieprogramma heeft een oude versie van ReOrg "
"gevonden in de bestemmingslade. Indien u doorgaat met de "
"installatie wordt die versie verwijderd en de nieuwe versie "
"daarvoor in de plaats gezet. Het is niet mogelijk twee verschillende "
"versies van ReOrg in dezelfde lade te hebben. Indien u door "
"wilt gaan, kies dan 'Doorgaan'. Indien niet, kies dan 'Afbreken'."))
(set @abort-button "Afbreken Installatie")
))
(user 0)
(if (> (* 37 65536) (getversion "exec.library" (resident)))
(abort #wrong-kick)
)
(if (> (* 39 65536) (getversion "exec.library" (resident)))
(set v39 0) (set v39 1)
)
(welcome)
(set old_level @user-level)
(set english_lang 2)
(user 2)
(set target (askdir (prompt #which-dir)
(help #which-dir-help)
(default "Work:")
))
(user old_level)
(set @default-dest target)
(user 2)
(set lang 0)
(while (= lang 0) (
(set lang (askoptions (prompt #which-language)
(help #which-language-help)
(choices "Dansk" "Deutsch" "English" "Nederlands")
(default (shiftleft 1 default_lang))
))
))
(user old_level)
(set oldversion FALSE)
(if (exists (tackon target "ReOrg")) (
(set oldversion TRUE)
))
(if (exists (tackon target "ReOrg.info")) (
(set oldversion TRUE)
))
(if (exists (tackon target "ReOrg.prefs")) (
(set oldversion TRUE)
))
(if (exists (tackon target "ReOrg.help")) (
(set oldversion TRUE)
))
(if oldversion (
(user 2)
(if (askbool (prompt #delete-old)
(help #delete-old-help)
) (
(delete (tackon target "ReOrg") (optional "force" "askuser"))
(delete (tackon target "ReOrg.info") (optional "force" "askuser"))
(delete (tackon target "ReOrg.prefs") (optional "force" "askuser"))
(delete (tackon target "ReOrg.help") (optional "force" "askuser"))
))
(user old_level)
))
(complete 20)
(set source_dir (pathonly (pathonly @icon)))
(if (not (= 0 (BITAND lang (BITNOT (shiftleft 1 english_lang))))) (
(makedir (tackon target "Catalogs"))
))
(set help_dir (tackon target "Help"))
(makedir help_dir (infos))
(set n 0)
(while (set langname (select n "Dansk" "Deutsch" "English" "Nederlands" "")) (
(if (IN lang n) (
(if (<> english_lang n) (
(set destdir (tackon (tackon target "Catalogs") langname))
(set srcdir (tackon (tackon source_dir "Catalogs") langname))
(makedir destdir)
(copyfiles (source (tackon srcdir "ReOrg.catalog"))
(dest destdir)
(optional "force" "askuser")
)
))
(makedir (tackon help_dir langname) (infos))
(set fname ("ReOrg_%s.guide" langname))
(copyfiles (source (tackon (tackon (tackon source_dir "Help")
langname) fname))
(dest (tackon help_dir langname))
(optional "force" "askuser")
(infos)
)
(tooltype (dest (tackon (tackon help_dir langname) fname))
(noposition)
(setdefaulttool (if v39 "MultiView" "AmigaGuide"))
)
))
(set n (+ n 1))
))
(complete 40)
(copyfiles (source (tackon source_dir "ReOrg"))
(dest target)
(optional "force" "askuser")
)
(complete 60)
(copyfiles (source (tackon source_dir "ReOrg.info"))
(dest target)
(optional "force" "askuser")
)
(tooltype (dest (tackon target "ReOrg"))
(setstack 40960)
(noposition)
)
(if (= 0 (getversion "locale.library" (resident)))
(tooltype (dest (tackon target "ReOrg"))
(settooltype "LANGUAGE" @language)
)
)
(copyfiles (source (tackon source_dir "ReOrg.prefs"))
(dest target)
(optional "force" "askuser")
)
(copyfiles (source (tackon source_dir "ReOrg.brain"))
(dest target)
(optional "force" "askuser")
)
(complete 80)
(if (NOT v39) (
(run (tackon source_dir "c/loadaguide"))
(if (> (+ (* 34 65536) 11) (getversion "amigaguide.library" (resident)))
(copylib (source (tackon source_dir "libs/amigaguide.library"))
(dest "libs:")
(optional "force" "askuser")
)
)
))
(complete 100)